package com.gz.mylife.app;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gz.mylife.R;

@SuppressLint("ResourceAsColor")
public class UseragreementActivity extends BaseActivity {
	private CheckBox checkbox;
	private View line;
	private LinearLayout ly_agree;
	private LinearLayout lin_addtext;
	private LinearLayout lin_addtitile;
	private TextView textview_title;
	private WebView webview;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_useragreement);
		setActionbarTitle("用户协议", false);
		
		checkbox = (CheckBox) findViewById(R.id.checkbox);
		checkbox.setVisibility(View.GONE);
		line = findViewById(R.id.line1);
		line.setVisibility(View.GONE);
		ly_agree = (LinearLayout) findViewById(R.id.ly_agree);
		ly_agree.setVisibility(View.GONE);
		textview_title = (TextView) findViewById(R.id.textview_title);
		textview_title.setVisibility(View.GONE);
		webview = (WebView) this.findViewById(R.id.webview); 
		WebSettings wv_setttig = webview.getSettings();
		wv_setttig.setJavaScriptEnabled(true);
		String url = "file:///android_asset/user_protocol.html";
		webview.loadUrl(url);

		
	}
	
}
